package org.pp.core;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class PageBean<P> {

    @Schema(description = "总记录数")
    private long total;
    @Schema(description = "总页数")
    private int pages;
    @Schema(description = "数据")
    private List<P> list;

    @Schema(description = "当前第几页")
    private int pageNum;
    @Schema(description = "每页多少条")
    private int pageSize;
}
